<?php
$desc = __d('cake_dev', 'Shop Minh Thư');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $desc ?>:
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');
		echo $this->Html->meta('description','Trang chủ, Áo ngực gợi cảm, thể thao, quần lót, đồ ngủ, đồ bộ và nhiều hơn nữa tại cửa hàng Shop Minh Thư trực tuyến');
		echo $this->Html->meta('robots','index,follow');
		echo $this->Html->meta('keywords','Trang chủ, armani, jumelles, thoi trang, phu nu, noi y, ao lot, quan lot, ao nguc, ao con, ao ngu, do ngu, lingerie, women&#039;s clothing, lingerie apparel, women&#039;s apparel, women&#039;s lingerie, intimate apparel, women&#039;s accessories, sexy lingerie, bra, bras, sports bras, panty, panties, intimates, sleepwear, pajamas, lingerie store');

		echo $this->Html->css('style');		
		
		echo $this->Html->script('jquery-1.10.1.min');		
		echo $this->Html->script('custom.js');		
		
		#echo $this->Html->css('jquery-ui');
		#echo $this->Html->script('jquery-ui.min');
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>	
</head>
<body>
	<div id="wrap">
		<div id="header">
			<h1><a href="/" title="Gợi cảm cùng Jumelles">Gợi cảm cùng Jumelles</a></h1>
			<div class="boxMenu">
			<div class="topMenu">
				<?php if(isset($current_user)):?>
				<a href="/tai-khoan-cua-ban">Tài khoản của <?php echo h($current_user['name'])?></a>(<a href="/dang-xuat">Đăng xuất</a>) | 
				<?php else: ?>
				<a href="/dang-nhap">Đăng nhập</a> | 
				<?php endif ?>				
				<a href="/gio-hang/">Giỏ hàng (<span id="cart_total"><?php echo $this->Session->check('cart')?count($this->Session->read('cart')):0?></span> sản phẩm)</a>
			</div>			
			<div id="searchContainer">
				<?php echo $this->Form->create('null',array('type'=>'get','url'=>array('action'=>'search','controller'=>'products')))?>
					<input name="submit" type="submit" value="Search" class='cbutton' />
					<div id="delete"><span id="x">x</span></div>
					<input id="field" name="field" type="text" value='Nhập từ cần tìm kiếm' />
				<?php echo $this->Form->end()?>
				<script language='javascript' type='text/javascript'>				
					$('#ProductSearchForm').submit(function(){
						if($('#field').val('Nhập từ cần tìm kiếm')) $('#field').val('');
						return true;
					});				
				</script>			
			</div>
			
			</div>
		</div>
		<div class="menuMain">
			<?php echo $this->element('main_menu',array('brands'=>$brands));?>			
		</div>
		<div class="mainContent">
			<div id="info-success">
				<?php echo $this->Session->flash(); ?>
			</div>
			<div class='breadcrumb'><?php echo $this->Html->getCrumbs()?></div>
			<?php echo $this->fetch('content'); ?>
		</div>		
		<div class="bottomLinks">
		<div class="bottomLinksBox">
			<ul>
				<li><?php echo $this->Html->link('Liên hệ với chúng tôi','/lien-he')?></li>
			</ul>
		</div>
		</div>
		<div class="footer">
			<div class="payments">
				Chúng tôi chấp nhận thanh toán qua<br />
				<img src="/img/payment-logo.jpg" alt="Chúng tôi chấp nhận thanh toán qua" /><br /><br />
				Hỗ trợ khách hàng: <a href="ymsgr:sendIM?vthuytrang2000"><img border="0" src="http://opi.yahoo.com/online?u=vthuytrang2000&m=g&t=1" /></a>
			</div>
			<div class="copyright"><p>	
	Copyright &copy; 2013 - Shop Minh Thư<br />
	TK 22/23 Nguyễn Cảnh Chân P.Cầu Kho Q.1<br />
	Tel: <span style="font-size: 8.5pt; color: gray; font-family: 'verdana','sans-serif'; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa">+84 0909.34.84.28</span> 
	<!--Hoặc <span style="font-size: 8.5pt; color: gray; font-family: 'verdana','sans-serif'; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa">+84 0909.211.977 </span><br />-->
	Email: <a href="mailto:vthuytrang2000@gmail.com">vthuytrang2000@gmail.com</a> - Website: <a href="http://www.shopminhthu.com">www.shopminhthu.com</a></p>
</div>
		</div>
	</div>	
<script type="text/javascript" language="javascript">  
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-41137620-1', 'shopminhthu.com');
  ga('send', 'pageview');
	
	$(document).ajaxStart(function() {
		$( "#loading" ).show();
	}).ajaxStop(function() {
		$( "#loading" ).hide();
	});
</script>
	<?php
	if(Configure::read('debug') > 0){
		print_r($this->params);
		echo $this->element('sql_dump');		
	}
	?>
<div id="loading" style='display:none;margin-left:50%;margin-top:50%;'>
  <p><img src="/img/zoomloader.gif" /> Please Wait</p>
</div>
</body>
</html>